From: Lute Kamstra Date: Mon, 6 Oct 2003 08:26:26 +0000 (+0000) Subject: (Coding Conventions): Mention naming conventions for hooks. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~25285 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=8841adb37a7536b4b070d90ccaafcf5e1f039225;p=emacs.git (Coding Conventions): Mention naming conventions for hooks. --- diff --git a/lispref/tips.texi b/lispref/tips.texi index d769fca581d..d07fa1b3712 100644 --- a/lispref/tips.texi +++ b/lispref/tips.texi @@ -125,6 +125,12 @@ add @samp{-p}. Examples are @code{framep} and @code{frame-live-p}. If a user option variable records a true-or-false condition, give it a name that ends in @samp{-flag}. +@item +If the purpose of a variable is to store a single function, give it a +name that ends in @samp{-function}. If the purpose of a variable is +to store a list of functions (i.e., the variable is a hook), please +follow the naming conventions for hooks. @xref{Hooks}. + @item @cindex reserved keys @cindex keys, reserved